package com.desaysv.dragrvitem.item;

import androidx.annotation.NonNull;

import com.desaysv.dragrvitem.adapter.holder.InputHolderManager;

/**
 * @see <a href="https://juejin.cn/post/6844903472601497614"/>
 * @see <a href="https://github.com/free46000/MultiItem"/>
 */
public abstract class BaseItemInput<T extends BaseItemInput> extends InputHolderManager<T> implements ItemInput {
    protected String key;

    /**
     * @param key 录入对应key
     */
    public BaseItemInput(String key) {
        this.key = key;
    }


    @NonNull
    @Override
    public String getItemTypeName() {
        return toString();
    }

    @Override
    public InputHolderManager getViewHolderManager() {
        return this;
    }

    @Override
    public String getKey() {
        return key;
    }

}
